<?php
namespace Tbf\Bundle\QueueBundle;
use Tbf\Bundle\TbfBundle\DependencyInjection\TbfContainerAware;

class QueueManager extends TbfContainerAware
{
    /**
     * 用名称获取一个队列
     * @param $name
     * @return Queue
     */
    public function getQueue($name)
    {
        return new Queue($name,$this->get('doctrine')->getManager());
    }
}
